Optimal. Leaf size=277 \[ \frac {\left (3 a^2 C+b^2 (8 A+5 C)\right ) \sin (c+d x) (a+b \cos (c+d x))^{2/3} F_1\left (\frac {1}{2};\frac {1}{2},-\frac {2}{3};\frac {3}{2};\frac {1}{2} (1-\cos (c+d x)),\frac {b (1-\cos (c+d x))}{a+b}\right )}{4 \sqrt {2} b^2 d \sqrt {\cos (c+d x)+1} \left (\frac {a+b \cos (c+d x)}{a+b}\right )^{2/3}}-\frac {3 a C (a+b) \sin (c+d x) (a+b \cos (c+d x))^{2/3} F_1\left (\frac {1}{2};\frac {1}{2},-\frac {5}{3};\frac {3}{2};\frac {1}{2} (1-\cos (c+d x)),\frac {b (1-\cos (c+d x))}{a+b}\right )}{4 \sqrt {2} b^2 d \sqrt {\cos (c+d x)+1} \left (\frac {a+b \cos (c+d x)}{a+b}\right )^{2/3}}+\frac {3 C \sin (c+d x) (a+b \cos (c+d x))^{5/3}}{8 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.36, antiderivative size = 277, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {3024, 2756, 2665, 139, 138} \[ \frac {\left (3 a^2 C+b^2 (8 A+5 C)\right ) \sin (c+d x) (a+b \cos (c+d x))^{2/3} F_1\left (\frac {1}{2};\frac {1}{2},-\frac {2}{3};\frac {3}{2};\frac {1}{2} (1-\cos (c+d x)),\frac {b (1-\cos (c+d x))}{a+b}\right )}{4 \sqrt {2} b^2 d \sqrt {\cos (c+d x)+1} \left (\frac {a+b \cos (c+d x)}{a+b}\right )^{2/3}}-\frac {3 a C (a+b) \sin (c+d x) (a+b \cos (c+d x))^{2/3} F_1\left (\frac {1}{2};\frac {1}{2},-\frac {5}{3};\frac {3}{2};\frac {1}{2} (1-\cos (c+d x)),\frac {b (1-\cos (c+d x))}{a+b}\right )}{4 \sqrt {2} b^2 d \sqrt {\cos (c+d x)+1} \left (\frac {a+b \cos (c+d x)}{a+b}\right )^{2/3}}+\frac {3 C \sin (c+d x) (a+b \cos (c+d x))^{5/3}}{8 b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 138
Rule 139
Rule 2665
Rule 2756
Rule 3024
Rubi steps
\begin {align*} \int (a+b \cos (c+d x))^{2/3} \left (A+C \cos ^2(c+d x)\right ) \, dx &=\frac {3 C (a+b \cos (c+d x))^{5/3} \sin (c+d x)}{8 b d}+\frac {3 \int (a+b \cos (c+d x))^{2/3} \left (\frac {1}{3} b (8 A+5 C)-a C \cos (c+d x)\right ) \, dx}{8 b}\\ &=\frac {3 C (a+b \cos (c+d x))^{5/3} \sin (c+d x)}{8 b d}-\frac {(3 a C) \int (a+b \cos (c+d x))^{5/3} \, dx}{8 b^2}+\frac {1}{8} \left (8 A+\left (5+\frac {3 a^2}{b^2}\right ) C\right ) \int (a+b \cos (c+d x))^{2/3} \, dx\\ &=\frac {3 C (a+b \cos (c+d x))^{5/3} \sin (c+d x)}{8 b d}+\frac {(3 a C \sin (c+d x)) \operatorname {Subst}\left (\int \frac {(a+b x)^{5/3}}{\sqrt {1-x} \sqrt {1+x}} \, dx,x,\cos (c+d x)\right )}{8 b^2 d \sqrt {1-\cos (c+d x)} \sqrt {1+\cos (c+d x)}}+\frac {\left (\left (-8 A-\left (5+\frac {3 a^2}{b^2}\right ) C\right ) \sin (c+d x)\right ) \operatorname {Subst}\left (\int \frac {(a+b x)^{2/3}}{\sqrt {1-x} \sqrt {1+x}} \, dx,x,\cos (c+d x)\right )}{8 d \sqrt {1-\cos (c+d x)} \sqrt {1+\cos (c+d x)}}\\ &=\frac {3 C (a+b \cos (c+d x))^{5/3} \sin (c+d x)}{8 b d}-\frac {\left (3 a (-a-b) C (a+b \cos (c+d x))^{2/3} \sin (c+d x)\right ) \operatorname {Subst}\left (\int \frac {\left (-\frac {a}{-a-b}-\frac {b x}{-a-b}\right )^{5/3}}{\sqrt {1-x} \sqrt {1+x}} \, dx,x,\cos (c+d x)\right )}{8 b^2 d \sqrt {1-\cos (c+d x)} \sqrt {1+\cos (c+d x)} \left (-\frac {a+b \cos (c+d x)}{-a-b}\right )^{2/3}}+\frac {\left (\left (-8 A-\left (5+\frac {3 a^2}{b^2}\right ) C\right ) (a+b \cos (c+d x))^{2/3} \sin (c+d x)\right ) \operatorname {Subst}\left (\int \frac {\left (-\frac {a}{-a-b}-\frac {b x}{-a-b}\right )^{2/3}}{\sqrt {1-x} \sqrt {1+x}} \, dx,x,\cos (c+d x)\right )}{8 d \sqrt {1-\cos (c+d x)} \sqrt {1+\cos (c+d x)} \left (-\frac {a+b \cos (c+d x)}{-a-b}\right )^{2/3}}\\ &=\frac {3 C (a+b \cos (c+d x))^{5/3} \sin (c+d x)}{8 b d}-\frac {3 a (a+b) C F_1\left (\frac {1}{2};\frac {1}{2},-\frac {5}{3};\frac {3}{2};\frac {1}{2} (1-\cos (c+d x)),\frac {b (1-\cos (c+d x))}{a+b}\right ) (a+b \cos (c+d x))^{2/3} \sin (c+d x)}{4 \sqrt {2} b^2 d \sqrt {1+\cos (c+d x)} \left (\frac {a+b \cos (c+d x)}{a+b}\right )^{2/3}}+\frac {\left (8 A+\left (5+\frac {3 a^2}{b^2}\right ) C\right ) F_1\left (\frac {1}{2};\frac {1}{2},-\frac {2}{3};\frac {3}{2};\frac {1}{2} (1-\cos (c+d x)),\frac {b (1-\cos (c+d x))}{a+b}\right ) (a+b \cos (c+d x))^{2/3} \sin (c+d x)}{4 \sqrt {2} d \sqrt {1+\cos (c+d x)} \left (\frac {a+b \cos (c+d x)}{a+b}\right )^{2/3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 2.78, size = 279, normalized size = 1.01 \[ -\frac {3 \csc (c+d x) (a+b \cos (c+d x))^{2/3} \left (4 \left (-6 a^2 C+40 A b^2+25 b^2 C\right ) \sqrt {-\frac {b (\cos (c+d x)-1)}{a+b}} \sqrt {\frac {b (\cos (c+d x)+1)}{b-a}} (a+b \cos (c+d x)) F_1\left (\frac {5}{3};\frac {1}{2},\frac {1}{2};\frac {8}{3};\frac {a+b \cos (c+d x)}{a-b},\frac {a+b \cos (c+d x)}{a+b}\right )+60 a C \left (a^2-b^2\right ) \sqrt {-\frac {b (\cos (c+d x)-1)}{a+b}} \sqrt {-\frac {b (\cos (c+d x)+1)}{a-b}} F_1\left (\frac {2}{3};\frac {1}{2},\frac {1}{2};\frac {5}{3};\frac {a+b \cos (c+d x)}{a-b},\frac {a+b \cos (c+d x)}{a+b}\right )-20 b^2 C \sin ^2(c+d x) (2 a+5 b \cos (c+d x))\right )}{800 b^3 d} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.56, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (C \cos \left (d x + c\right )^{2} + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {2}{3}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \cos \left (d x + c\right )^{2} + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {2}{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.34, size = 0, normalized size = 0.00 \[ \int \left (a +b \cos \left (d x +c \right )\right )^{\frac {2}{3}} \left (A +C \left (\cos ^{2}\left (d x +c \right )\right )\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (C \cos \left (d x + c\right )^{2} + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {2}{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \left (C\,{\cos \left (c+d\,x\right )}^2+A\right )\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{2/3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________